﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sales="clr-namespace:Marking.Dashboard.Views.Sales" 
    xmlns:stock="clr-namespace:Marking.Dashboard.Views.Stock" 
    x:Class="Marking.Dashboard.Views.Home.MainView"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Padding="0" VerticalContentAlignment="Top" HorizontalContentAlignment="Left">
        <Grid x:Name="LayoutRoot" Background="White" MinWidth="1200" MinHeight="800" >
            <Grid.RowDefinitions>
                <RowDefinition Height="3*" />
                <RowDefinition Height="2*" />
            </Grid.RowDefinitions>
            <sales:SalesView Grid.Row="0" DataContext="{Binding SalesViewModel}"/>
            <stock:StockView Grid.Row="1" DataContext="{Binding StockViewModel}"/>
        </Grid>
    </ScrollViewer>
</UserControl>
